From b5df1299ec6b22df0f83f18befc27175e00b0a39 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 31 Mar 2021 07:49:58 -0400 Subject: [PATCH] gsk: Add another test Compare clipped repeat nodes. Must skip cairo here since it blurred the child by scaling after rendering. Also skip the gl renderer, since it hasn't been fixed for this yet. ngl passes this test. --- .../gsk/compare/clipped-repeat-3d-ngl.node | 32 ++++++++++++++++++ .../gsk/compare/clipped-repeat-3d-ngl.png | Bin 0 -> 1760 bytes testsuite/gsk/meson.build | 3 +- 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 testsuite/gsk/compare/clipped-repeat-3d-ngl.node create mode 100644 testsuite/gsk/compare/clipped-repeat-3d-ngl.png diff --git a/testsuite/gsk/compare/clipped-repeat-3d-ngl.node b/testsuite/gsk/compare/clipped-repeat-3d-ngl.node new file mode 100644 index 0000000000..288560c89d --- /dev/null +++ b/testsuite/gsk/compare/clipped-repeat-3d-ngl.node @@ -0,0 +1,32 @@ +transform { + child: transform { + child: rounded-clip { + child: container { + repeat { + bounds: 0 0 159 34; + child: container { + color { + bounds: 0 0 10 10; + color: rgb(168,168,168); + } + color { + bounds: 10 0 10 10; + color: rgb(84,84,84); + } + color { + bounds: 0 10 10 10; + color: rgb(84,84,84); + } + color { + bounds: 10 10 10 10; + color: rgb(168,168,168); + } + } + } + } + clip: 0 0 159 34 / 6; + } + transform: scale(4, 4); + } + transform: translate(6, 20); +} diff --git a/testsuite/gsk/compare/clipped-repeat-3d-ngl.png b/testsuite/gsk/compare/clipped-repeat-3d-ngl.png new file mode 100644 index 0000000000000000000000000000000000000000..b9a847d7c13af6db15e3b19941cba0006821ed27 GIT binary patch literal 1760 zcmdUweN>WH9LKM=uoulJOOKLnc&fwNrkNX3m|NmYs9DrGg)hTnHDgOKrvf3$Y^}!} zxrVPn+K!>Q7t1*@U!bO?Cp9=8GGBlc91=$nof#0Id$j%0+28%M^PKa0zRx}9{+@e( zzwiCr!o!E6+}3%o0|2-kj3$r(aL$D_v<3l3&bd!A;1?n_CW-)-mY*AvIzBv5dXVth zF{aR{ZlrmTw{kUK)A#vD-1JR7fMEF-#9^Cyw<0v2Ub~$hZ2Z)9?WpJMEp=J@T=)-U z*Y|dZUyd%!7*eP3hKhdTC96H8^PEji#!TyT!o8o5C1WO2LQo&+h4k7I+Rc)NQc^?Y zgHq`3lLZz3(M=n7{gdFhG5`Kk`RZW`_T>=Ik$rMS>Q!Ss5YrDy_t(Y|4TD*GIjt=% z=7uSJjNb9kXf*cW^pBwv#Zaldx}4M|dk4%ivM}fd-$h#*W_zY=Aoy_}k;*$iH4Rrrv23)7vd$ISa05p zINg>8g#vChoL(nyZfM2TI9@?^@x_dPk zcYa?aJkz?gUOI5*MIfHH9%NkoE!P^#iTV?Z+E9L!Se$Q<1)zUqVsLO!Ctt#?lXeY> zoWS94g!4y~ItW^>rY4&Tz{jmEjg9AU+CWRDOyH2M0{1(%p-^Wd?WVGs^Tka7+ySDJ z1qi~!X}kEX@Pq_%a&oc^rx$SIox%N7SHuMYPLx$+`V4>*-;;WILQ>mP^Sc0i(BGUy zY#lXwEXzR@^7yMNXTZJK`lG*=Gh5%;#XA&z_os<%-N-#jq|A)cpgr`o3haWOd704WlI!*#O{di+}sYI+>yoZ?r#2s-(La6 z(HO_eiAg7rQk5y&nJ`0`<@HPqVMLGp_H2RyK_ZSMQ7HKioqlIQ06G=#yL6Rw{*I*) zMg-r*$Hyl>*XTlVlR^-Tp4b;KCf2yq)NKpXiDC9HW+PA$)k^qxVfCcm$zO+yLbhAb zS7@e1@2Y33fu(XYV?*c3Ws~6G)_Z;pu k5p#P~%wgHLQ1uIbydA=t literal 0 HcmV?d00001 diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build index 439f5a7c2e..edb06ad154 100644 --- a/testsuite/gsk/meson.build +++ b/testsuite/gsk/meson.build @@ -76,6 +76,7 @@ compare_render_tests = [ 'clip-in-rounded-clip2', 'clip-in-rounded-clip3', 'rounded-clip-in-clip-3d', # not really 3d, but cairo fails it + 'clipped-repeat-3d-ngl', 'issue-3615' ] @@ -89,7 +90,7 @@ informative_render_tests = [ renderers = [ # name exclude term - [ 'gl', '' ], + [ 'gl', '-ngl' ], [ 'ngl', '' ], [ 'broadway', '-3d' ], [ 'cairo', '-3d' ], -- 2.30.2